LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so

ExpiresActive On
#ExpiresDefault "access plus 300 seconds"

ErrorLog logs/fedoracommunity_error_log
CustomLog logs/fedoracommunity_access_log combined

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/x-javascript

# This caching may not necessarily be ideal, or even correct.
# However, it was the only I could get firebug to show me 302's for
# my ToscaWidget resources.
<filesmatch ".(gif|jpe?g|png|css|js)$">
   Header unset Cache-Control
   Header unset Etag
   Header add Cache-Control "max-age=2592000"
   #ExpiresDefault A2592000
</filesmatch>

# Lots of static resources for the tagger app.
Alias /tagger/css /usr/lib/python2.7/site-packages/fedoratagger/frontend/static/css
Alias /tagger/javascript /usr/lib/python2.7/site-packages/fedoratagger/frontend/static/javascript
Alias /tagger/images /usr/lib/python2.7/site-packages/fedoratagger/frontend/static/images/
Alias /tagger/rating /usr/lib/python2.7/site-packages/fedoratagger/frontend/static/rating/
Alias /tagger/_res /usr/share/fedoratagger/toscawidgets/resources

WSGIPythonEggs /var/cache/fedoracommunity/.python-eggs
WSGIDaemonProcess fedoratagger user=apache group=fedoratagger maximum-requests=50000 display-name=fedoratagger processes={{ wsgi_procs }} threads={{ wsgi_threads }} inactivity-timeout=300
WSGISocketPrefix run/wsgi
WSGIRestrictStdout Off
WSGIRestrictSignal Off
WSGIPythonOptimize 1

WSGIScriptAlias /tagger /usr/share/fedoratagger/fedoratagger.wsgi

<Directory /usr/share/fedoratagger/>
  WSGIProcessGroup fedoratagger
  Require all granted
</Directory>
<Directory /usr/lib/python2.7/site-packages/fedoratagger/frontend/static/>
  Require all granted
</Directory>
<Directory /usr/share/fedoratagger/toscawidgets/resources>
  Require all granted
</Directory>
